﻿namespace UsingClassesAndObjects
{
    using System;

    class RandomValues
    {
        // 1.2.10.02. Write a program that generates and prints to the console 10 random values in the range [100, 200].

        static void Main()
        {
            bool[] asdf = new bool[101];

            Random shittyClass = new Random();
            for (int i = 0; i < 10; i++)    // only 10 random numbers
            {
                int randomNum = shittyClass.Next(100, 201);    // makes random number in the range 100 - 200, inclusively.
                
                while (asdf[randomNum - 100] == true) // to make sure the numbers will be unique
                {
                    randomNum = shittyClass.Next(100, 201);
                }
                asdf[randomNum - 100] = true;

                Console.WriteLine(randomNum);
            }
        }
    }
}